/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-05-30 11:51:41
 */
import {
  REPORTING_CONTENT_TYPE_LIST,
  // BROADCAST_TYPE_LIST,
  // BROADCAST_TYPE,
} from '@/const/type';
export const tableOption = (isComment) => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 160,
    searchLabelWidth: 130,
    labelWidth: 130,
    viewBtn: false,
    detail: true,
    column: [
      {
        type: 'select',
        label: '举报内容类型',
        prop: 'objType',
        search: true,
        dicData: REPORTING_CONTENT_TYPE_LIST,
      },
      {
        label: '宠物昵称',
        prop: 'nickName',
      },
      {
        label: '宠物编号',
        prop: 'code',
      },
    ],
    group: [
      {
        label: '宣传图片/视频',
        prop: 'group1',
        labelWidth: 110,
        column: [
          {
            label: '',
            display: true,
            prop: 'petPicture',
            type: 'upload',
            listType: 'picture-card',
            row: true,
            span: 24,
          },
          // {
          //   label: '',
          //   prop: 'petVideo',
          //   type: 'upload',
          //   listType: 'picture-img',
          //   fileType: 'video', //img/video/audio
          //   propsHttp: {
          //     name: 'hash',
          //     url: 'key',
          //   },
          //   row: true,
          //   span: 24,
          // },
        ],
      },
      {
        label: '宠物简介',
        prop: 'group3',
        labelWidth: 0,
        column: [
          {
            type: 'textarea',
            label: '',
            prop: 'introduction',
            minRows: 7,
            span: 24,
          },
        ],
      },
      {
        label: '被举报评论',
        prop: 'groupComment',
        labelWidth: 0,
        display: isComment,
        column: [
          {
            type: 'textarea',
            label: '',
            prop: 'commentContent',
            minRows: 7,
            span: 24,
          },
        ],
      },
    ],
  };
};
